/*
 * main.h
 *
 *  Created on: Nov 2, 2012
 *      Author: andrey
 */

#ifndef MAIN_H_
#define MAIN_H_

#include "halconf.h"

#include "ch.h"
#include "hal.h"
#include "time.h"

#define VERSION_STRING "ver.10"

#define CHIBIOS 1
typedef float myfloat;
#define SECOND 1000

#define ADC_PC0 0
#define ADC_PC1 1
#define ADC_PC2 2
#define ADC_PC3 3

#define ADC_PA0 0
#define ADC_PA1 1
#define ADC_PA2 2
#define ADC_PA3 3
#define ADC_PA4 4
#define ADC_PA5 5

#define DE_PA6 6
#define DE_PA7 7
//#define DE_PA8 8
//#define DE_PA9 9
#define TIM1_PA8 8
//#define TIM1_PA9 9
#define TIM1_PA10 10
//#define TIM1_PA11 11
//#define DE_PA13 13
#define DE_PA14 14
#define DE_PA15 15

#define USART_PB10 10
#define USART_PB11 11

/**
 * see lcd.h for LCD pins
 */

#define CONSOLE_TX_PIN USART_PB10
#define CONSOLE_RX_PIN USART_PB11


#endif /* MAIN_H_ */
